home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / MENU_UTL / PDM_ED / MANUAL.DOC < prev    next >
Text File  |  1989-06-24  |  12KB  |  420 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.                      PULL-DOWN/POP-UP MENU EDITOR
  23.  
  24.  
  25.                                June 89
  26.  
  27.  
  28.  
  29.                         Coleman Software, Inc.
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. Introduction
  54. ------------
  55.  
  56. There are two main parts to the Pull-Down/Pop Up menu editor:
  57. PDM_ED.EXE and PDM_USE.TPU.  PDM_ED.EXE is a stand-alone utility that
  58. allows the user to create a pull-down or pop-up menus as easily as he
  59. would edit an ordinary file. Pull-Down/Pop-Up menus will hence forth
  60. be refered to as a PDMs.  The PDM, once created with PDM_ED is saved
  61. as a "stand-alone" file that can be reference by any Turbo Pascal
  62. program "Uses"ing the PDM_USE unit.  (It can also be reference from
  63. other languages such as Microsoft C with additional Coleman Software
  64. Utilities as will be described later in this manual.)  PDM_USE.TPU,
  65. the second half of the PDM package, is designed for compiling with
  66. Turbo Pascal.  PDM_USE "hooks" directly into your Turbo Pascal
  67. application effortlessly allowing it to both display the PDM and
  68. animate its inverse video selection bar based on the users key
  69. presses.  When the user makes a selection from the PDM, a PDM_USE
  70. function returns the selection number to the calling program thereby
  71. allowing the program to "Key" on this value --- branching to different
  72. routines or in general reacting to the users selection in whatever
  73. way is appropriate.  How much code do you, the programmer, need to
  74. write to display the PDM and get the user selection?  Exactly one
  75. line.
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. PDM_ED
  89. ------
  90.  
  91. Use of PDM_ED is fairly intuitive and can probably be accomplished 
  92. without reading this documentation.  Having read this documentation 
  93. may prevent "first-time panic".
  94.  
  95. First of all, there are two ways of evoking PDM_ED:
  96.  
  97. PDM_ED
  98.  
  99. <At this point you will be prompted for PDM filename (and PDM title 
  100. if the file is a new file)>
  101.  
  102. or
  103.  
  104. PDM_ED <PDM FILENAME>
  105.  
  106. <At this point you will either go directly to the Modify phase of
  107. PDM_ED if the filename specified is of an existing PDM file or you
  108. will be prompted for a PDM window title if the PDM filename you
  109. specified is that of a new (non-existant) PDM file>
  110.  
  111. Once Started, the Editing process consists of three distinct phases.  
  112. Each of these phases is tagged with an indicator in the lower left
  113. hand corner of the screen.  These three phases are: Modify, Drag and
  114. Color.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. The Modify Phase
  127. ----------------
  128.  
  129.    When the Modify Phase first comes up a window appears on the 
  130.    screen that is the largest possible window that can be used (40 
  131.    characters by 15 lines).  If the pdm filename you specified when 
  132.    you evoked PDM_ED is of an existing PDM then the lines you edited 
  133.    into that PDM will appear within this editing window.
  134.  
  135.    The Modify Phase consists of Editing the text internal to the
  136.    Pull-Down/Pop-Up Menu: the actual user specifiable selections.  This 
  137.    phase has several active editing keys.  For the most part these 
  138.     keys are the same keys that almost all IBM-PC editor and 
  139.    word-processors use.  An exception to this is the PgUp and PgDn 
  140.    keys which are used to insert and delete lines rather than 
  141.    functioning in their usual roles.  A summary of the modify mode 
  142.    key usage is as follows:
  143.  
  144.    Delete - deletes the character the cursor is currently on top of.
  145.  
  146.    Backspace - deletes the character behind the cursor.
  147.  
  148.    Insert - Toggles the insert/typeover mode for character typed 
  149.             into the line.  Notice that the indicator changes 
  150.             between Insert and Overtype in the lower left hand 
  151.             corner to reveal at all times what the mode currently 
  152.             is.  Additionally, the cursor changes shape based on 
  153.             what mode you are currently in.
  154.  
  155.    PgDn - Deletes the line the cursor is currently on.  If there 
  156.           are any lines below the deleted line they will all 
  157.           move up to fill in the gap.
  158.  
  159.    PgUp - Inserts a blank line before the cursor line and then 
  160.           positions the cursor on the newly created blank line.  
  161.           The one time this does not work is when the PDM is 
  162.           completely filled with fifteen lines.  (In this case 
  163.           you will have to delete line (PgDn) before you can 
  164.           insert line (PgUp).
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181. Drag Phase
  182. ----------
  183.  
  184. As soon as you exit the modify phase by hitting escape, you enter the 
  185. Drag phase.  If you look at the indicator in the lower left hand 
  186. corner it will reflect this change of state.  As always the on-screen 
  187. help tells you what your allowable keypresses are --- but this time 
  188. the choice is very simple indeed.  The only active keys are the arrow 
  189. keys which allow you to drag the window around the screen until it is 
  190. placed where you want it to appear when your application, with the 
  191. help of PDM_USE causes it to "pop-up" or "pull-down" on your user 
  192. interface screen.
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206. Color Phase
  207. -----------
  208.  
  209. As soon as you exit the Drag phase by hitting escape, you enter the 
  210. Color phase.  If you look at the indicator in the lower left hand 
  211. corner it will reflect this change of state. Once again as the 
  212. on-line help will tell you the active keys are the arrow keys.  In 
  213. the case of Color Mode, however, the arrow keys work very differently 
  214. from Drag mode.  
  215.  
  216. The left and right arrows work as a team to change the part of the
  217. window to be colored.  The right arrow key moves forward through a
  218. list of four window parts: Title background, Title foreground, Window
  219. background and window forground.  The left arrow key moves backward
  220. through this same list.
  221.  
  222. Similarly the up and down arrows work as a team to actually change 
  223. the color of the part of the window that has been selected.
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231. PDM_USE
  232. -------
  233.  
  234. The smallest possible "client" program of PDM_USE is as follows:
  235.  
  236. Program example;
  237.  
  238. Uses
  239.   Pdm_Use;
  240.  
  241. var
  242.   PDM_Code : Byte;
  243.  
  244. Begin
  245.   If ActivePDM_File('example.pdm') Then
  246.     PDM_Code := UserSelectedPDM_Code;
  247. End.
  248.  
  249.  
  250. As can be seen there are only two functions involved in the UNIT
  251. which makes life very simple for the Application programmer using it.
  252. The first function: ActivePDM_File and UserSelectedPDM_Code.
  253. ActivePDM_File translates the information save in the PDM_File into
  254. a displayable PDM and shows it on the application screen in the
  255. position and with the colors created (or last modified) by PDM_ED.  
  256. UserSelectedPDM_Code breaths life into the PDM by move the inverse 
  257. video selection bar over the possible selections based on the user 
  258. pressing the up-arrow or down-arrows.  If the user presses down-arrow 
  259. on the bottom-most selection the inverse video bar jumps up to the 
  260. top-most selection.  Likewise, if the user presses up-arrow at the 
  261. top-most selection the inverse video bar jumps to the bottom-most 
  262. selection.  The user may move up and down (or wrap-around) in this 
  263. manner as much as he likes until he decides what to select.  He makes 
  264. the selection by pressing the Enter key.  Once the Enter key is 
  265. pressed, the UserSelectedPDM_Code function exits returning the line 
  266. number of the selection the user has made as a function return value.  
  267. In the example above this return value is store in the variable 
  268. PDM_Code although there are nummerous other ways the return value can 
  269. be handle including making is a "tag" field in a case statement or 
  270. directly analysed by the condition clause of an if statement.
  271.  
  272. Note that to create the proper effect for PDM a pre-PDM screen save 
  273. and post-PDM screen restore should be use.  If you do not have access 
  274. to (or haven't written) such routines send and additional $10.00 with 
  275. your registration fee and I will include these routines and on-disk 
  276. documentation how to use them.
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. Advantages of Registering this Software
  288. ---------------------------------------
  289.  
  290. 1)    Insure the release on other Coleman Software tools and software 
  291.     packages via the shareware marketing system.  Including among
  292.     these tools is a fill-in form (data record i/o) handler with a 
  293.     similar philosophy to PDM_ED, a    script-oriented intelligent 
  294.     terminal\file uploading and downloading program and of course, 
  295.    upgrades to PDM_ED itself (incorporating menu bars, etc.).  
  296.     Registering will place you in a direct notification data-base for 
  297.     future releases of such software --- with no obligation to buy.
  298.  
  299. 2)    If you are an application programmer working in anything other 
  300.     than Turbo Pascal there is a more immediate reason for 
  301.     registering than the above.  We have created a PDM_USE.OBJ module 
  302.     which may be directly linked with Microsoft C and other MS-DOS 
  303.     programs to animate PDMs in exactly the same manner PDM_USE.TPU 
  304.     does for turbo pascal.  Currently the PDM_USE.OBJ "flavor" of 
  305.     pull-down/pop-up menu animating is only availible through the mail 
  306.     by registering PDM_ED with Coleman Software.
  307.  
  308.  
  309.  
  310. How to Register
  311. ---------------
  312.  
  313.     To register for PDM_ED.EXE and PDM_USE.TPU costs $20.00.  If you
  314.     want the PDM_USE.OBJ module please include and addition $10.00
  315.     ($30.00 all together) along with the mailing address and disk 
  316.     size desired.  Similarly, if you want the screen save/restore disk
  317.     include $10.00 extra.  If you want both pieces of software that is 
  318.    $20.00 additional dollars to the PDM_ED registration fee ($40.00 
  319.     all together). Remember to include the sales tax relevant to your 
  320.    state. 
  321.  
  322.    Please pay by Check or Money order only.  
  323.  
  324.    There is an order form on the following page.
  325.  
  326.  
  327.  
  328.  
  329. Remit to:                Coleman Software, Inc.
  330.                          15900 Crenshaw Blvd. Ste. 115
  331.                          Gardena, CA 90249
  332.  
  333.  
  334.  
  335.  
  336.  
  337. Number of Copies being registered ......................... _________
  338.  
  339. Cost per copy ............................................. $20.00
  340.  
  341. Total Amount Remitted for PDM_ED Registration ............. _________
  342.  
  343. Check here if you want a PDM_USE.OBJ Disk ................. _________
  344.  
  345. Cost for PDM_USE.OBJ Disk ................................. $10.00
  346.  
  347. Check here if you want a screen save/screen restore disk .. _________
  348.  
  349. Cost for screen save/screen restore disk ................... $10.00
  350.  
  351. Total amount remitted for Purchase/Registration .......... _________
  352.  
  353. Sales Tax on Above Amount ................................. _________
  354.  
  355. Total Amount remitted ..................................... _________
  356. ( Make Checks payable to Coleman Software, Inc.)
  357.  
  358.  
  359.  
  360.  
  361. Fill out below to be included in our direct software update 
  362. notification data base and/or to receice the PDM_USE.OBJ Disk.
  363.  
  364.  
  365. Name:    ____________________________________________________________
  366.  
  367. Company: ____________________________________________________________
  368.  
  369. Address: ____________________________________________________________
  370.  
  371.  
  372.  
  373.  
  374. Disk Size: 3.5 inch (  )      5.25 inch (   )
  375.  
  376.  
  377.  
  378.  
  379. Sorry, no C.O.D. orders will be accepted.
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                WARRANTY
  401.  
  402.  
  403.  
  404. Coleman Software, Inc. makes no warranty of any kind, express or 
  405. implied, including without limitation, any warranties of 
  406. merchantability and/or fitness for a particular purpose.  Coleman 
  407. Software, Inc. shall not be liable for any damages, whether direct, 
  408. indirect, special or consequential arising from a failure of this 
  409. program to operate in the manner desired by the user.  Coleman 
  410. Software, Inc. shall not be liable for any damage to data or property 
  411. which may be caused directly or indirectly by use of the program.
  412.  
  413. IN NO EVENT WILL Coleman Software, Inc. BE LIABLE TO YOU FOR ANY 
  414. DAMAGES, INCLUDING ANY LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL 
  415. OR CONSEQUENTIAL DAMAGES ARISING OUT OF YOU USE OR INABILITY TO USE 
  416. THE PROGRAM, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  417.  
  418.  
  419.  
  420.